home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / episode1.swf / scripts / frame_108 / PlaceObject2_68_224 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-03-20  |  2.3 KB  |  101 lines

  1. onClipEvent(enterFrame){
  2.    var bytesloaded = _root.getBytesLoaded();
  3.    var percentage = bytesloaded / totalbytes;
  4.    if(1 < percentage)
  5.    {
  6.       percentage = 1;
  7.    }
  8.    _root.LoadingBar.Loaded.Percent.Loaded = int(percentage * 100);
  9.    if(20 < _root.LoadingBar.Loaded.Percent.Loaded and Passe20 != true)
  10.    {
  11.       Passe20 = true;
  12.       tellTarget("_root.LoadingBar")
  13.       {
  14.          gotoAndStop("20");
  15.          play();
  16.       }
  17.    }
  18.    if(30 < _root.LoadingBar.Loaded.Percent.Loaded and Passe30 != true)
  19.    {
  20.       Passe30 = true;
  21.       tellTarget("_root.LoadingBar")
  22.       {
  23.          gotoAndStop("30");
  24.          play();
  25.       }
  26.    }
  27.    if(40 < _root.LoadingBar.Loaded.Percent.Loaded and Passe40 != true)
  28.    {
  29.       Passe40 = true;
  30.       tellTarget("_root.LoadingBar")
  31.       {
  32.          gotoAndStop("40");
  33.          play();
  34.       }
  35.    }
  36.    if(50 < _root.LoadingBar.Loaded.Percent.Loaded and Passe50 != true)
  37.    {
  38.       Passe50 = true;
  39.       tellTarget("_root.LoadingBar")
  40.       {
  41.          gotoAndStop("50");
  42.          play();
  43.       }
  44.    }
  45.    if(60 < _root.LoadingBar.Loaded.Percent.Loaded and Passe60 != true)
  46.    {
  47.       Passe60 = true;
  48.       tellTarget("_root.LoadingBar")
  49.       {
  50.          gotoAndStop("60");
  51.          play();
  52.       }
  53.    }
  54.    if(70 < _root.LoadingBar.Loaded.Percent.Loaded and Passe70 != true)
  55.    {
  56.       Passe70 = true;
  57.       tellTarget("_root.LoadingBar")
  58.       {
  59.          gotoAndStop("70");
  60.          play();
  61.       }
  62.    }
  63.    if(80 < _root.LoadingBar.Loaded.Percent.Loaded and Passe80 != true)
  64.    {
  65.       Passe80 = true;
  66.       tellTarget("_root.LoadingBar")
  67.       {
  68.          gotoAndStop("80");
  69.          play();
  70.       }
  71.    }
  72.    if(90 < _root.LoadingBar.Loaded.Percent.Loaded and Passe90 != true)
  73.    {
  74.       Passe90 = true;
  75.       tellTarget("_root.LoadingBar")
  76.       {
  77.          gotoAndStop("90");
  78.          play();
  79.       }
  80.    }
  81.    if(_root.LoadingBar.Loaded.Percent.Loaded == 100 and Passe100 != true)
  82.    {
  83.       Passe100 = true;
  84.       tellTarget("_root.LoadingBar")
  85.       {
  86.          gotoAndStop("100");
  87.          play();
  88.       }
  89.    }
  90.    ifFrameLoaded(536)
  91.    {
  92.       if(eval("/:Instru") != true)
  93.       {
  94.          tellTarget("_root.InstructionButton")
  95.          {
  96.             gotoAndStop(2);
  97.          }
  98.       }
  99.    }
  100. }
  101.